package com.bwie.doctor.mapper;

import com.bwie.doctor.domain.po.MedDoctor;
import com.bwie.doctor.domain.po.MedPatient;
import com.bwie.doctor.domain.po.MedRegistered;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MedRegisteredMapper {
    /**
     * 查询医生
     */

    MedDoctor queryDoctor(String realName);
    /**
     * 查询患者
     */
    MedPatient queryPatient(String patientName);
    /**
     * 修改状态
     */
    Integer UpddoctorState(Long doctorId,Long patientId,Integer status);

    /**
     * 添加挂号
     */
    Integer registered(@Param("realName") String dockerName, @Param("patientName") String patientName);

    /**
     * 查询患者挂号
     */
    MedRegistered  registerdFindByi(@Param("realName") String dockerName);
}
